       draw = ->
         WIDTH = canvas.width
         HEIGHT = canvas.height
-        requestAnimationFrame draw
+        requestAnimationFrame(draw)
         analyser.getByteTimeDomainData(dataArray)
         analyser.getByteFrequencyData(dataArray)
-        canvasCtx.fillstyle = '#2196F3'
+        # canvasCtx.fillstyle = '#2196F3'
 
         canvasCtx.clearRect(0, 0, WIDTH, HEIGHT)
         i = 0
         bar_width = 1
         while i < WIDTH
-          bar_x = i * 10
+          bar_x = i * 14
           bar_y = HEIGHT / 2
           bar_height = -(dataArray[i] / 4) + 1
           canvasCtx.fillRect bar_x, bar_y, bar_width, bar_height

    $scope.canRecord = true

    mediaRecorder = new recorderService()
    mediaRecorder.config.stopTracksAndCloseCtxWhenFinished = true
    mediaRecorder.config.createAnalyserNode = true
    mediaRecorder.em.addEventListener('recording', (evt) -> onNewRecording(evt))
    $scope.recordingAvailable = false
    $scope.isRecording = false

    # Need to get non-angular bindable components
    canvas = document.getElementById('audio-recorder-visualiser')
    audio = document.getElementById('audioPlayer')
    canvasCtx = canvas.getContext("2d")

    $scope.playStop = () ->
