add js syntax error support