commit11- trying to incorporate javascript - not so easy to make it work