fix image path
add mode support

now we provide 3 script load scpre:
app,module,view
fix require paths