Just sudied require.js and started to rewrite code