Fixed javascript syntax error
Fixed javascript bug for windows phone