Expose move/resize to JS