Some simple javascript canvas interactions