added javascript for size selector and like