tiny JS solution