Added javascript features