move js-add button and logic into separate file, make it available in new pastes