I am a bit confused here.
Are we suppose to use a4j:jsFunction instead of a regular < script > tag now in jsf files?
If so..does the old < script > functions still work??
I seem to be getting runtime errors on my page...
Does the < script > is like a h:commandButton?
So, forget about your idea to replace one with other and use both for the purposes their are designed for.