removed a syntax error on javaScript on beginning and ending lines