fix javascript files loading