Added getUsername to script.js