jq.width() replaced by jq.prop('width'), same for height, for firefox