Updates displayed javascript in shapes

Removes console logs and updates the javascript code displayed on the
shapes page to match the actual code.