Added javascript methods for prize adding.