refactored js file
refactored js file

rubygems/rubygems.org,sonalkr132/rubygems.org,sonalkr132/rubygems.org,rubygems/rubygems.org,sonalkr132/rubygems.org,rubygems/rubygems.org,rubygems/rubygems.org,sonalkr132/rubygems.org