added javascript autoloader