see comment above (only that in this case mode is changed from "css" to "javascript"