fixed javascript parsing error