publish.js rewrite

fixes PLAY-487 Erratic sizing with url specified width and height for published movies