Js dep management

Closes #50