reorganizing javascript files into categories