add mobile img js functionality