Cleaned up ProfileWindow.js

cleaned up some garbage code that wasn't needed.