Sometimes a script works. sometimes it doesnt. the intermintency of js and wp is ridiculous. I tried a plugin last year that was supposedly make js work with wp smoothly but turned out to be garbage. what is the deal with this. any tips to make js work with wp?