Extended javascript as a preprocessor written in perl