Removed MediaWiki and DataValues dependencies from JavaScript code