add the basic javascript for the host image carousel