Some js stuff I use all the  time