A base for javascript libraries