[BUGFIX] Dates in AngularJS are expected as Date object

This partly reverts commit 549d0f0a8cf7e9820e746f5049c82c961e827940
concerning the JavaScript part.