Added requirejs to frontend code.