GHCJS runtime system and JavaScript support code for packages