Added testing for user, removed javascript - because there *should* be another way to do this.
Changed file-permissions, because I am too lazy to change them back.