Moved to Other Programming Languages
javascript != java. Your code is javascript, and this is a java forum. You might try your luck on a javascript dedicated forum