buggy onComplete code fixed. Using proper variables.
Merge branch 'coconut-drupal' of https://github.com/ICTatRTI/coconut into coconut-drupal