fixed semi typo and added strict mode & warnings