fixes related to jquery v2