javascript stuff that works