trailing slash for js