add test html file
wrap javascript code in document ready function
use the strict mode