finished converting JS to objects and placement in separate js files