finished basic javascripting