Hello:
Your month param from the setDate() in your api is non-zero based whereas the month from the JS date object is zero based. If you can either change that to comply with the JS standard or simply mention it in your documentation. This took me a lot of time to figure out.. Thanks