Adding javascript features