Add JS to allow creation page to work