App server working and JS written for logging