fix javascript sources