sm js