Is JavaScript actually needed for this scenario?