basic scaffolding to future javascript logic