TYPOC-65: Add helper method to update input, marker and circle, Cleanup JS