Removes dead code
Avoid using deprecated functionality in jquery
useless code removed