Move browse JS to page-specific script file