Refactor pglab1 js

Basically remove the junk from part 1 that's no longer needed.