All.js loading error: Cannot read property 'trim' of undefined

I got this error
Cannot read property ‘trim’ of undefined
when I set the data-options for <script src=“” …

Here is the screenshot:

I tried both all.js and all-debug.js, the result is the same. When I set the data-options param empty everything works fine. If I set at least one parameter inside data-options everything breaks and AP. is undefined in my script.

Here is my HTML that is loaded as page from my domain

<!DOCTYPE html>
<html lang="en">

        <script src=""

            <h1>Hello World 5</h1>

                window.onload = function()
/*                    AP.getLocation(function(location){



Resolved, I had a typo and used = instead of : for key:value params;