javascript and ruby evaluation scripts