Relevant JS moved into module