replace depreciated .live() js calls with .on()

fixed errors. this may still not work as intended, but at least now it
runs.