JS1K submission - Spring 2013 competition