fix IE8 error by putting jQuery inside jQuery.(document).ready(function() { });;