Renamed ctrl -> ngModel to be consistent with examples
Added Javascript unit tests