added test javascript for embedding