Fix for beautify to work with require.js
Adopt to the recent erlang-oauth (1.3+)

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Signed-off-by: Alexander Shorin <kxepal@apache.org>