method to be jquery-free