Created AMD modules for messages and dynamicBackground and removed all JsHint errors.