separated JS to a file