Fix logic paths for JS requires