Adding lintmode for js syntax checking