Sadly what it does and does not preview seems to be pretty random. For me with Lion it will preview Rakefiles and .txt files for example, but not .js files.
On mobile device right now, but earlier today Alfred prompted for a beta update which included some Spotlight features. Not sure about the details or if it's only part of the paid Powerpack