View page JS conversion