First commit of js functionality