update to latest sdk 2.o and organize js files