remove js warnings
remove warning
format code, and create more object