set up javascript for create list page