Modularize web player js code.
Fix catalog deletion bug.