Adds JavaScript abstraction for new paste.