enabled JavaScript
added configurability