Remove superfluous console.log statements
Turn $data into a proper angular service