Handle javascript files