fix javascript spec