updated positioning and HSVtoRGB js