Just change 'var requiredVersion = 7' to the required version 2. In your document place the following script in the desired position (but before doing that you have to go to Site -> Global configuration and choose 'No WYSIWYG editor'