Common library for javascript