cleaned up old code

- Made my first javascript examples look a bit better, removed old stuff