firefox autocomplete fix

added jay's fix to caplight.js