Create close function to prevent conflict with other js libraries

Create initial variables and default options