Implementation of basic LOGO interpreter in Javascript