I've created a clone of 'Cosmic Rift' called 'Astral Rift'. It is played in the browser and made with Javascript, NodeJS and JoyJS.
The codebase and the gameplay instructions are here https://github.com/esuen/AstralRift.
The game is playable here http://www.astralrift.com.
Please try it out and give me feedback.