modify document
add initIndex
modify swap and flex
add document.css
modify AMDQuery