changes JavaScript path