fix javascript variable assignment, String -> Number