Updated and fixed timesheet-functionality

Mainly fixed some js-bugs, rewrote the timesheet-register and so forth