Clean up javascript.
Fix JSON perhaps?