Fixed device lookup javascript for new loans