Implementing date restriction on input parsing

Also fixing spacing in checkbox, removing callbacks in datepicker (unnecessary code because triggers are implemented), and modifying index.html file to be cleaner.

Fixes #336