Merge pull request #19 from chuanweizhang2013/master

fixed js bugs
Merge pull request #20 from chuanweizhang2013/master

add native is debug function
modify resource