Hey there, how are you ?
I'll be precise, first of all, i will make script right now, as you have require, secondly, i am an expert java-script-er, and also have knowledge about compiler constructions, regular expressions, etc. which seems to be required for your script.
if you would be kind enough to contact me, i'll explain further.
waiting for your response,
Talha.