restructuring the js folder