More javascript functions added