moved inline rules into file, detect map element on page