An extension to the core javascript library