jQuery not working in Chrome and IE
<p>I'm working on a Wordpress theme.
On the header I check if this is the first visit (the user just entered the website).</p>

<p>If this is the first visit, an animation appears. Animation = a sidebar appears in the middle of the page, in some miliseconds it opens and the page appears.
In the code, ub_sb_closed_on_hp is an option that sets only the sidebar to appear for the home page.</p>

<p>It works under Mozilla, but it doesn't work under Internet Explorer and Chrome. On IE and Chrome the animation appears on all the pages.</p>

<p>See the code here: <a href="http://paste.laravel.com/lFt" rel="nofollow">http://paste.laravel.com/lFt</a></p>
