Moving some javascript into individual .js files