Move JavaScript to toggle inline list visibility into module.js file

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>