updated locking mechanism to look for the newly-available pre-loaded js settings instead of using ajax to determine if quiz is passed