Cleaned up code a lot, thanks to stuff I learned reading a few Javascript articles last night ^^