Clean up auth pin javascript