some js goodies