Need help to load Lua config in JS

Hey, got an small problem, i tried to read from an lua config in a js

in my Javascript

maxfuel = Config.Classes[GetVehicleClass(GetPlayersLastVehicle)]

but this does not work, i never tried js before, im a totally newbie

does anyone know how to do it?