corrected javascript for pushwoosh test