separated JS into separate files