Began adding Javascript code on frontend