Make AMD module and add package.json