cleaning up design to smaller js files