Only insert JS if contenttype and record ID are valid and defer loading of library until page load is complete
Update version block
Merge pull request #1028 from GawainLynch/hotfix/RateIt

Only insert JS if contenttype and record ID are valid and defer loading of library until page load is complete