e76976e Move js to a separate file