Added some unit tests for position method. Fixed issue with position in IE.