creating single jsfm for server/client