That should work I think, you can also try putting your scripts in the ACP at /admin/appearance/customise#custom-js
A new post in topic shows only when page is refreshed
In my topic.tpl I made some changes using @first to separate first post in topic from others. It worked, but there is now next problem. When i create a new post it doesn't show it instantly, I have to refresh page to see that post.
This is how my topic.tpl looks now http://pastebin.com/jYNQ1WVr
Also, I noticed this http://screencast.com/t/jESEIi9GiY . Instead of just creating one more <li> in .otherPosts div it creates another .firstPost and .otherPosts div.
I think that maybe I made some mistake with using @fist but I can't figure out what is it. Someone help?