cleaned things up with JSHint
fixed critical bug with copying content