if $scope.coords is not defined, if statement will crash.
Merge pull request #7 from chitacan/master

mouse pad not working.