detach JS to separate file