cleaned jquery code