Added requirejs. Added typescript typings.