Fix JS errors in Fathom template