fix javascript