JSlint and code formatting. Use isActive variable to store module state.