Using Angular.JS to implement the famous cellular automaton