Add alert function to js module