Move Swiss transform functions to the .js file