Removed Javascript Errors. IE9 and 10 Compatible