JQuery scripts within templates finally working after switching from resources plugin (previously r:script) to asset-pipeline plugin (asset:script)