Ability to log javascript errors in rails backend