Post data should compile AFTER beforeSend event
Make asset loading functions public