Javascript is not the same as java

You need to explain what the problem is.