deleted outside script code for jquery so I'm using default rails jquery