Added frontend JS