fix javascript files for homepage