moved functions to staticjs