fix requirejs shim path according to module info
add setSnippets method