fixed javascript dependency issues