Simple javascript canvas library