Use data- attribute instead of #hash to pass resource uid

Fixes weird case where Chrome loads the script twice + introduces a cleaner way to set init parameters.