Hand made library for javascript