v.905 - javascript re-write