Rewrite JS Dependencies