Modulatized the JS