First commit for the JS file - adding core library and a way to initialize it. Will check in TODOs shortly.