Basic utilities for javascript