Added console log when JS loaded