changed the order of javascript files