fix small js syntax error