JS view implementation