fixed javascript specs