php html javascript media libary for managing audio, video, book and abstract media types