some basic javascript modules