Adding amazing and beautiful javascript code for the back-end API

This is not just a bunch of code, is beautiful, documented and well-written code for the API