new js file for layouts