js is moved into js files