cross browser .trim implemented
small navigation edits