added artist methods, put some common methods into common.js, minor refactoring