Avoid Common Pitfalls in Greasemonkey