added separate javascript