added string formatting js

and fixed whitespace in prototype.js