Added clientside javascript