added script for extracting js lib from src to media