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.
f = form_builder results in the if statement being false if form_builder isn't defined, so it would use the uneditable view in that case.