fix the js lib dependency