use js to control double slash