added source to log data in javascript