More fixes to js13k 2014 entry