Revert changes in amcs.js