removed dependancy on jquery. some other misc stuff.