order of javascript requirements