visit www.propertyinvestor.co.nz - it's not pretty but it works. That uses plain old echo's to get the javascript to the page
visit www.pcropertymanager.com/v2 and go to the support pages. Loads of javascript and I use phplib templates to get that working. Makes it easier to write and maintain the javascript and much much quicker to throw together.
Enjoy