extension of frontend

added javascript functionality to frontend