added wrapper in the actual JS, dont know what the param might be for the .details file