add javascript implementation of glutSetCursor function
fix indentation
handle all possible GLUT cursor value and throw an exception when an invalid one is provided
Merge pull request #2696 from anlambert/glut_set_cursor

Add support for glutSetCursor function