converted hamltoe.io to jquery (except for html drop stuff)