refactored complex-to-pixel function, even though I realized it's not used anywhere. Still pretty sure it works.
moved presentation javascript into its own file
housekeeping. Moved some code around, fixed a few minor display bugs