A Javascript library for simple snake game