Move choose_module js into separate file.