initial import for js stuff

basically working but needs some clean up