in 1.0 you'd have a client script attached that just wouldn't be deployed that had your logic in it, in 2.0, you just make another module and include it in your script. Same concept as 1.0 but you aren't making a "client script" that is attached on the record, its all done in code.