Documentation for Javascript Library