Added js_base dependency, better unit tests