Adding scripts before plugins scripts

Add your fallback code into a plugin and save your plugin in the MU folder: http://codex.wordpress.org/Must_Use_Plugins.

Then this will run before any other plugins