Added alert and log functions to the soca js library.