Fixed the evaluation of JS conditions
Merge pull request #112 from stof/evaluate_js

Fixed the evaluation of JS conditions