tidy JS library usage by making a variable.