Added verify_nonce method to nonce helper #3282
Move actions for inline js to helpers #3282