Fixing issue #3 by using  methods and adding .messageBox() service to allow existing messageBox to work