add referrer to js
updates from sanmiks project