refactored the javascript code to load properly and added one test
cleaned up git repository