Clean up javascript using gamut namespace