errors in application js in syntax of on click call