Requirejs with bugs