Useful javascript client-side layers