adding js functions for keyboard control @Home