Removed alert() call intended for testing purposes.