create endpoint field
js to hide/show endpoint depending on the engine