Fixed homescreen.js error