fix javascript files