Create audioplayer.js

This file contains the audioplayer class. Objects can be instantiated using this class and then can be configured.