updated to latest library and condensed code

Update to PrototypeJS (1.7) and latest Scriptaclous