Cleaned up some hilarious javascript