Added require js functionality.