Wrapped the Browser scripts in an anonymous to prevent namespace conflicts
Fixed anonymous function call for browser script