moved datetime JS from view
bugfix-datetime merged into bugs; resolves #8