add spm support
Merge pull request #23 from spmjs/master

add spm support