Various nifty javascripts