Modular Javascript HTML5 player