Save session and remove js from removetraillingwhitespace