fixed sample js and cleaned next view