Change alert error and fix and extra S on .js file