Move morph object to separate .js file.