Push preview binding into function in separate file

Also make jQuery selectors more specific to avoid clashes