Changed initialize function to avoid conflicts with libraries like google maps API.