cleaning up javascript

I don't think I need so many prototypes