Separate out Client-side code in different module