Fixing JS dependencies (Porting from another project)