Extending PR #23

Extending PR #23 and basically just rewriting the js for the datetime partial to support nil and to not be ugly as hell.