cleanup jquery implimentation