Support for other script types

This ensures aliases aren't lost when using script hooks e.g coffee-script.