added js for books & media tab