Adjusting datepicker position

My attempt to fix issue #8.

Detecting if there is enough space to render the datepicker and if not - changing its position.
Additionaly added setPosition function to prototype - may be quite useful as noted in comments.