JavaScript version of YouPass.