Update require_once.js

Now it keeps track of the included/requested files by itself using the php_js_shared.
includes is now an array. 
Added dependency on in_array()