Another method to get js working