Add javascript magic to make the manual seamless