Switch no_scripts check from defined? to present?
Merge pull request #683 from lonelyplanet/if-fix-js-template-error

Switch no_scripts check from defined? to present?