Added Embed Fit to javascript