cleaning up repo and debugging. moving towards single js file