why does Vbulletin use Javascript? does it do stuff that PHP could not do?
Yes, as Javascript is not server side, it allows for some execution even after the page is done loading, which php does not allow. Examples for these are the options to check all checkboxes.