Indent the js, add new settings variable
Fix some errors in IE browser