I've just trued using QuickLook on a .js file with Espresso installed and I saw the code, with syntax colouring included. You can get Espresso from https://www.espressoapp.com/ I personally use [TextMate from Macromates](https://macromates.com)