 
     @sona.play(id)
 
-  # Callback to play music
   playMusic: (id) ->
     return unless localStorage.getBoolean('playMusic')
 

        random: 0
      localStorage.setObject 'lastViewedLevel', lastViewedLevel

    # Array that contains purchased IAP product IDs
    if localStorage.getObject('purchased') == null
      localStorage.setObject 'purchased', []

    # Whether to play music/SFX
    if localStorage.getItem('playMusic') == null
      localStorage.setItem 'playMusic', "true"

    if localStorage.getItem('playSfx') == null
      localStorage.setItem 'playSfx', "true"

# Cordova fires `deviceready` event when environment is ready
if ENV.cordova
  document.addEventListener "deviceready", ->
    window.app = new App
  , false
else

        random: 0
      localStorage.setObject 'complete', complete

    if localStorage.getObject('lastViewedLevel') == null
      lastViewedLevel =
        beginner: 0
