More Javascript functionality.