The query attributes aren't exposed to script layer right now, but this should at least parse over them once encountered and some fixups.