Integrate example images and refactor js integration