Added homework APIs in Javascript