JavaScript and LiveScript implementation