diff --git a/core/js/js.js b/core/js/js.js
index cd9b8bd30100a608e7f4ddb1c1f009a2c6400569..cb177712a3a9ad46532453a65941f6fb028c875e 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -750,7 +750,7 @@ function fillWindow(selector) {
 function initCore() {
 
 	/**
-	 * Calls the server periodically to ensure that session doesnt
+	 * Calls the server periodically to ensure that session doesn't
 	 * time out
 	 */
 	function initSessionHeartBeat(){
@@ -771,7 +771,7 @@ function initCore() {
 		});
 	}
 
-	// session heartbeat (defalts to enabled)
+	// session heartbeat (defaults to enabled)
 	if (typeof(oc_config.session_keepalive) === 'undefined' ||
 		!!oc_config.session_keepalive) {