Simple Diff Function implemented in Python, PHP, CoffeeScript, and JavaScript