Sure! Here's a playable sample game for a 2.5D beat 'em up with a horror atmosphere using JavaScript within a single HTML file:
Please note that this is a basic template and doesn't include all elements of a fully-fledged game. You can enhance it by adding animation, sound effects, additional player moves, and more as per your requirements.