Update directives.js

getYear() + 1900 is the same that getFullYear(), is simpler, and it is crossbrowser save.
So hopefully, Jonotron doesn't need to be anyone's sex slave, but that is always up to him.