Javascript framework for useful key functionality