Bug 984117 - [Calendar] JSHint fixes for js/views r=gaye

tried to change as less code as possible.